package com.gesis.logic.imp;

import java.util.ArrayList;
import java.util.Calendar;
import java.util.GregorianCalendar;
import java.util.List;

import com.gesis.logic.IParameters;

public class Parameters implements IParameters {

	List<String> lstItems;

	@SuppressWarnings("static-access")
	public List<String> loadYears() throws Exception {
		lstItems = new ArrayList<String>();
		Calendar cal = GregorianCalendar.getInstance();
		int year = cal.get(cal.YEAR);
		try {
			lstItems.add("--");
			for (int i = 1960; i <= year; i++) {
				lstItems.add(String.valueOf(i));
			}
		} catch (Exception e) {
			// TODO: handle exception
		}
		return lstItems;
	}

}
